﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.Services;
using System.Data;

public partial class SiteMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if ((DataTable)Session["giohang"] != null)
        {
           DataTable tb_giohang;
           tb_giohang = (DataTable)Session["giohang"];
           lbGioHang.Text = "Giỏ hàng (" + tb_giohang.Rows.Count.ToString() + ")";
           lbGioHang.NavigateUrl = "DatHang.aspx";
        }
        else
        {
            lbGioHang.Text = "Giỏ hàng (0)";
        }
        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
        Response.Expires = -1500;
        Response.CacheControl = "no-cache";

    }
    protected void btnHidden_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text.Trim() != "")
        {
            Response.Redirect("Tim.aspx?q=" + TextBox1.Text);
        }
    }
  

}
